import mongoose from 'mongoose'
// 生成Schema模型
const Schema = mongoose.Schema
const damageCostSchema = new Schema({
  tower: {
    type: String
  },
  dorm: {
    type: String
  },
  name: {
    type: String
  },
  serviceman: {
    type: String
  },
  repalce: {
    type: String
  },
  count: {
    type: String
  },
  costs: {
    type: String
  },
  damageId: {
    type: String,
    required: true
  },
  time: {
    type: Date,
    default: Date.now
  }
})

export default mongoose.model('damageCost', damageCostSchema, 'damageCost')
